//
//  RTabBar.h
//  WuyouTang
//
//  Created by yunbao01 on 2023/11/9.
//  Copyright © 2023 cat. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger ,TabBarType){
    
    TabBarTypeHome = 100, //首页
    TabBarTypeAddress , //同城
    TabBarTypeNews , //消息
    TabBarTypeMe , //我的
    TabBarTypeAdd , // 中间按钮
};
@class RTabBar;
@protocol RTabBarDelegate<NSObject>
@required
- (void)tabbar:(RTabBar *)tabbar withBtn:(TabBarType )tabbarType;
@end

@interface RTabBar : UIView
@property (nonatomic,strong)  NSMutableArray *itemArr;

/**
 背景
 */
@property (nonatomic,strong)  UIImageView *tabBarBJView;
@property (nonatomic,strong)  UILabel *msgCountLb;

- (instancetype)initWithFrame:(CGRect)frame;
@property (nonatomic,assign) NSInteger selectIndex;
@property (nonatomic,weak) id<RTabBarDelegate>delegate;
-(void)updateNum:(int)num;
@end

